#ifndef __crc32_H
#define __crc32_H


#ifdef __cplusplus
extern "C" {
#endif 

//计算CRC32的
unsigned int crc32(unsigned int crc,unsigned char *buffer, unsigned int size);
unsigned int get_crc32_last(unsigned int crc);




//计算CRC16的
unsigned int crc16_cal_by_byte(unsigned short crc, unsigned char* ptr, unsigned short len);



#ifdef __cplusplus
}
#endif


#endif



